﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VISS.API.Commons {
    public interface ISmoking {

        /// <summary>
        /// Insert new SmokingEnt
        /// </summary>
        /// <param name="item">SmokingEnt</param>
        /// <returns>return true if success, otherwise return false</returns>
        bool Insert(SmokingEnt item);
        /// <summary>
        /// Update SmokingEnt
        /// </summary>
        /// <param name="item">SmokingEnt</param>
        /// <returns>return true if success, otherwise return false</returns>
        bool Update(SmokingEnt item);
        /// <summary>
        /// Delete a SmokingEnt
        /// </summary>
        /// <param name="iD">ID of SmokingEnt need to be deleted</param>
        /// <returns>return true if success, otherwise return false</returns>
        bool Delete(short iD);

        /// <summary>
        /// Get all SmokingEnt
        /// </summary>
        /// <returns>return a list of SmokingEnt (empty list if no SmokingEnt exists)</returns>
        List<SmokingEnt> GetAll();
    }
}
